package com.keba.lamp.complaint.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 文书模版
 * </p>
 *
 * @author twg
 * @date 2025-07-09 15:45:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("ss_doc_template")
public class DocTemplate extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * 唯一标识字符串
     */
    @TableField(value = "code", condition = LIKE)
    private String code;
    /**
     * 模版名称
     */
    @TableField(value = "name", condition = LIKE)
    private String name;
    /**
     * 文书类型 [01立案文书、02律师函]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TYPE)
     */
    @TableField(value = "doc_type", condition = LIKE)
    private String docType;
    /**
     * 文书模版类型 [01送达地址、02银行结算确认书]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TEMPLATE_TYPE)
     */
    @TableField(value = "doc_template_type", condition = LIKE)
    private String docTemplateType;
    /**
     * 【多选】适用当事人0-原告，1-被告
     */
    @TableField(value = "apply_party", condition = LIKE)
    private String applyParty;
    /**
     * 当事人类型（0-自然人，1-企业法人）
     */
    @TableField(value = "party_type", condition = EQUAL)
    private Integer partyType;
    /**
     * 关联的文档模板id
     */
    @TableField(value = "parent_doc_template_id", condition = LIKE)
    private String parentDocTemplateId;
    /**
     * 关联的案件id
     */
    @TableField(value = "case_id", condition = EQUAL)
    private Long caseId;
    /**
     * 关联的案件用户id
     */
    @TableField(value = "case_user_id", condition = EQUAL)
    private Long caseUserId;

    @TableField(value = "size", condition = EQUAL)
    private Integer size;

    @TableField(value = "version", condition = EQUAL)
    private Integer version;

    @TableField(value = "edit_status")
    private Boolean editStatus;



}
